package office.bo.business.impl;

import java.util.Date;

import current.security.user.domain.User;


import office.bo.business.IBidBook;
import office.domainset.BizDomainProviderSetImpl;
import platform.common.bo.PersistenceBO;
import platform.common.dao.IDomainProviderSet;
import platform.common.exception.BusinessException;

public class BidBook extends PersistenceBO implements IBidBook {
	private static final long serialVersionUID = 1L;
	private String projectName;//项目名称
	private String biddingUnit;//招标公司
	private Date   biddingTime;//招标日期
	private String bidUnit;    //中标单位
	private String salesMan;   //业务员
	private String applyMan;   //申请人;
	private double totalPrice; //总价
	private double tenderMoney;//投标金额
	private double bidBookPrice;//标书费
	private double tenderMargin;//投标保证金
	private double bidServicePrice;//中标服务费
	private double otherPrice;//其它费
	private int status;//审批状态  0：待确认，1：以确认，2：待审批，3审批通过，-1驳回
	private int bidStatus;//是否中标 0:表示未中标，1：表示中标
	private String mark;//备注
	private String salesManName;
	private String entryRole;//申请人角色
	private String checkUserFee;//标书费用审批人(若申请人是商务经理就不需要次审批)
	private String checkUserCw;//财务审批人
	//2011-1-16日加入
	private String productName; //产品名称
	/**
	 * 获取用户对象
	 * @param domainProviderSet
	 * @return
	 * @throws BusinessException
	 */
	public User getUser(IDomainProviderSet domainProviderSet) throws BusinessException{
		User user=null;
		try {
			BizDomainProviderSetImpl domainProviderSetImpl = (BizDomainProviderSetImpl) domainProviderSet;
			user=(User)domainProviderSetImpl.getDao().findByIdAndDomain(domainProviderSetImpl.getUserDP(), this.salesMan);
		} catch (Exception e) {
			throw this.handleBusinessBOException(e);
		}
		return user;
	}
	
	//private Set<TenderCompany> tenderCompanys;//投标公司
	//private Set<BidProductDetail> bidProductDetails; //标书产品明细
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public String getBiddingUnit() {
		return biddingUnit;
	}
	public void setBiddingUnit(String biddingUnit) {
		this.biddingUnit = biddingUnit;
	}
	public Date getBiddingTime() {
		return biddingTime;
	}
	public void setBiddingTime(Date biddingTime) {
		this.biddingTime = biddingTime;
	}
	public String getBidUnit() {
		return bidUnit;
	}
	public void setBidUnit(String bidUnit) {
		this.bidUnit = bidUnit;
	}
	public String getSalesMan() {
		return salesMan;
	}
	public void setSalesMan(String salesMan) {
		this.salesMan = salesMan;
	}
	public double getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}
	public double getTenderMoney() {
		return tenderMoney;
	}
	public void setTenderMoney(double tenderMoney) {
		this.tenderMoney = tenderMoney;
	}
	public double getBidBookPrice() {
		return bidBookPrice;
	}
	public void setBidBookPrice(double bidBookPrice) {
		this.bidBookPrice = bidBookPrice;
	}
	public double getTenderMargin() {
		return tenderMargin;
	}
	public void setTenderMargin(double tenderMargin) {
		this.tenderMargin = tenderMargin;
	}
	public double getBidServicePrice() {
		return bidServicePrice;
	}
	public void setBidServicePrice(double bidServicePrice) {
		this.bidServicePrice = bidServicePrice;
	}
	public double getOtherPrice() {
		return otherPrice;
	}
	public void setOtherPrice(double otherPrice) {
		this.otherPrice = otherPrice;
	}
	public String getMark() {
		return mark;
	}
	public void setMark(String mark) {
		this.mark = mark;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getBidStatus() {
		return bidStatus;
	}
	public void setBidStatus(int bidStatus) {
		this.bidStatus = bidStatus;
	}
	public String getApplyMan() {
		return applyMan;
	}
	public void setApplyMan(String applyMan) {
		this.applyMan = applyMan;
	}
	public String getEntryRole() {
		return entryRole;
	}
	public void setEntryRole(String entryRole) {
		this.entryRole = entryRole;
	}
	public String getCheckUserFee() {
		return checkUserFee;
	}
	public void setCheckUserFee(String checkUserFee) {
		this.checkUserFee = checkUserFee;
	}
	public String getCheckUserCw() {
		return checkUserCw;
	}
	public void setCheckUserCw(String checkUserCw) {
		this.checkUserCw = checkUserCw;
	}
	public String getSalesManName() {
		return salesManName;
	}
	public void setSalesManName(String salesManName) {
		this.salesManName = salesManName;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}
	
}
